// 商品相关接口
import request from "@/utils/request";
// 获取商品分类信息
export const getCategory = (id) => request("/category", "get", { id });
//根据关键字所搜商品
export const getSearchGoods = (params) =>
  request("/search/all", "post", params);
  // 商品详情
export const getGoods = (id) => request("/goods", "get", { id });